Optimal. Leaf size=27 \[ -\frac {2 a \tan (c+d x)}{d \sqrt {a-a \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {3877}
\begin {gather*} -\frac {2 a \tan (c+d x)}{d \sqrt {a-a \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3877
Rubi steps
\begin {align*} \int \sec (c+d x) \sqrt {a-a \sec (c+d x)} \, dx &=-\frac {2 a \tan (c+d x)}{d \sqrt {a-a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 30, normalized size = 1.11 \begin {gather*} \frac {2 \cot \left (\frac {1}{2} (c+d x)\right ) \sqrt {a-a \sec (c+d x)}}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.18, size = 42, normalized size = 1.56
method | result | size |
default | \(-\frac {2 \sqrt {\frac {a \left (-1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )}{d \left (-1+\cos \left (d x +c \right )\right )}\) | \(42\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.81, size = 44, normalized size = 1.63 \begin {gather*} \frac {2 \, \sqrt {\frac {a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right )}} {\left (\cos \left (d x + c\right ) + 1\right )}}{d \sin \left (d x + c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {- a \left (\sec {\left (c + d x \right )} - 1\right )} \sec {\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 57 vs.
\(2 (25) = 50\).
time = 0.68, size = 57, normalized size = 2.11 \begin {gather*} -\frac {2 \, \sqrt {2} a \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \mathrm {sgn}\left (\cos \left (d x + c\right )\right )}{\sqrt {a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - a} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.79, size = 36, normalized size = 1.33 \begin {gather*} \frac {\sin \left (c+d\,x\right )\,\sqrt {a-\frac {a}{\cos \left (c+d\,x\right )}}}{d\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________